﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ParkManage.aspx.cs" Inherits="Platform_ParkManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>停车场设置</title>
    <link href="../Styles/style.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery132min.js" type="text/javascript"></script>
    <script src="../Scripts/validform.js" type="text/javascript"></script>
    <script src="../Scripts/GiveTip.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $.checkForm();
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table class="tabContent">
            <tr>
                <th lang="th">
                    添加
                </th>
            </tr>
            <tr>
                <td lang='td'>
                    <table style="border-collapse: separate" cellpadding="2">
                        <tr>
                            <td>
                                停车场：
                            </td>
                            <td>
                                <NC:FTextBox ID="txtParkName" runat="server" CheckGroup="Add" />
                            </td>
                            <td align="center">
                                <asp:Button ID="btnAdd" runat="server" class="btn" CheckGroup="Add" Text="添加" OnClick="btnAdd_Click" />
                                <asp:Button ID="btnBindData" runat="server" Text="更新" CssClass="hidden" uncheck="true"
                                    OnClick="btnBindData_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <th colspan="4" lang="th">
                    列表
                </th>
            </tr>
            <tr>
                <td lang="td">
                    <table style="border-collapse: separate" cellpadding="2">
                        <tr>
                            <td>
                                <asp:Label ID="LabPath" runat="server"></asp:Label>
                            </td>
                        </tr>
                    </table>
                    <NC:FGridView1 ID="FGridView1" runat="server" AutoCreateNumber="true" AutoGenerateColumns="false" AllowExportToExcel="false"
                        AllowPaging="false" ShowFooter="false" DataKeyNames="ParkID" Width="98%">
                        <Columns>
                            <asp:TemplateField HeaderText="停车场">
                                <ItemTemplate>
                                    <%# int.Parse(Eval("Depth").ToString()) >= 2 ? Eval("ParkName") : "<a title='点击查看车位' href='ParkManage.aspx?CommuntyID=" + Request.QueryString["CommuntyID"] + "&ParentID=" + Eval("ParkID") + "'>" + Eval("ParkName") + "</a>"%>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="操作" ItemStyle-Width="60px" ItemStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <asp:Button runat="server" class="Gridbtn" Text="删除" ID="btnDel" OnClientClick="GiveTip(event,'您确定删除吗？');"
                                        OnClick="btnDel_Click" CommandArgument='<%# Eval("ParkID") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </NC:FGridView1>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
